I have a Dxl script which works fine when i run it via Doors>Edit>Dxl option but when i run the same script via command line getting an error message.
Please find the my scrip which is getting an error along with Batch script which has been used to call the Dxl
- pragma runLim,0
- string s = "/DS-B2/Change Proposal System/Suggestions" //module location
- Item i = item s
- if (exists module s)
- {
- Module w = read("/DS-B2/Change Proposal System/Suggestions") //module location
- current w
- bool confirm (string z) { print "Confirmed: " z "\n"; return true }
- void ack (string z) {print "Acknowledge: " z "\n" }
- void infobox (string z) {print "Info: " z "\n" }
- void info (string z) {print "Info: " z "\n" }
- DB theDiag = null
- void show (DB x) { realize x; theDiag = x }
- void block (DB x) { realize x; theDiag = x }
- if (null current Module) {
- print "You need to have a current Module set for the export."
- }
- {#include
- standard/export/office/word.dxl
-
set(exportHeadingsToggle, false)
-
set(exportLayoutChoice, 1)
- doExport theDiag
- if (!null theDiag) destroy theDiag
- }
-
}
Batch Script
cd C:\Program Files\IBM\Rational\DOORS\9.6\bin doors.exe -d 36690@cob1022940.cob.apac -dxl "C:\export\export.dxl" -u Administrator -P Admin@12 -project "/DS-B2"